package com.huli.controller;

import com.huli.pojo.NursingProject;
import com.huli.service.NuerdingProjectService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RestController
@RequestMapping("nuerdingProject")
public class NuerdingProject {
    @Resource
    private NuerdingProjectService nuerdingProjectService;

    @RequestMapping("findAll")
    public List<NursingProject> findAll(){
        return nuerdingProjectService.findAll();
    }

    @RequestMapping("selectByid")
    public NursingProject selectByid(Integer id){
        return nuerdingProjectService.selectByid(id);
    }

}
